<?php
/**
 * Created by PhpStorm.
 * Muser: lvchy
 * Date: 2018/9/26
 * Time: 16:49
 */

namespace app\common\model;
use think\Model;
use traits\model\SoftDelete;


class SysNotice extends Model
{
// 设置完整的数据表（包含前缀）
    use SoftDelete;
// 设置完整的数据表（包含前缀）
    protected $table = 'sys_notice';
    protected $deleteTime = 'delete_time';

    public function getPicUrlsAttr($val)
    {
        return $val?explode(',',$val):[];
    }
}